package com.caishi.lkx.exam.service;

import com.caishi.lkx.course.model.VideoChapterModel;
import com.caishi.lkx.exam.model.ChapterModel;
import com.caishi.lkx.exam.model.ColumnModel;
import com.zzw.common.entity.BSService;
import com.zzw.common.service.service.SortService;
import com.caishi.lkx.exam.ienum.type.ColumnType;

import com.caishi.lkx.exam.model.re.ExColumnConfigReModel;

import java.util.List;

/**
 * @author: Janisa
 * @date: 2022/3/17 17:47
 * @description:
 */
public interface IExColumnConfigReService extends BSService<ExColumnConfigReModel,Long>, SortService<ColumnModel> {

    /**
     * 判断栏目配置的内容是否免费
     * @param columnId
     * @param configId
     * @return
     */
    boolean configIsFree(String columnId, String configId);


    /**
     * 配置信息
     * @param columnId
     * @param configId
     * @return
     */
    ExColumnConfigReModel configData(String columnId, String configId);

    /**
     * 获取章节
     * @param columnId 栏目id
     * @return
     */
    List<ChapterModel> getChaptersByColumn(String columnId);

    /**
     * 获取视频章节
     * @param columnId 栏目id
     * @return
     */
    List<VideoChapterModel> getVideoChaptersByColumn(String columnId);

    /**
     * 查询科目下某种类型栏目配置的集合ids
     * @param categoryId
     * @param columnType
     * @return
     */
    List<String> columnTypeConfigs(Long categoryId, ColumnType columnType);
}
